<table id="stocks">
  <thead>
    <tr>
      <th>Company</th>
      <th>Name</th>
      <th>Qty.</th>
      <th>Cost</th>
      <th>Tax%</th>
    </tr>
  </thead>

  <tbody>
    <% @stocks.each do |stock| %>
      <tr id="<%= stock.id%>" commission_percentage="<%= stock.commission_percentage %>" class="stock">
        <td class="company"><%= stock.company %></td>
        <td class="name"><%= stock.name %></td>
        <td class="quantity"><%= stock.available_quantity %></td>
        <td class="sale_cost"><%= stock.sale_cost %></td>
        <td class="tax_percentage"><%= stock.tax_percentage %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<table id="sold_stocks">
</table>
